package com.example.springbootapplication.context;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * After HelloWorldApplicationInitializer
 * @Author acy
 * @Date 2019/04/27
 */
public class AfterHelloWorldApplicationInitializer <C extends ConfigurableApplicationContext> implements Ordered,ApplicationContextInitializer<C> {
	@Override
	public void initialize(C applicationContext) {
		System.out.println("After---HelloWorldApplicationInitializer.id---------------"+applicationContext.getId());
	}

	@Override
	public int getOrder() {
		return Ordered.LOWEST_PRECEDENCE;
	}
}
